using System;
using UniversalAdmin.Domain.Entities;

namespace UniversalAdmin.Domain.Entities.App;

public class OperationLog : EntityBase
{
    public Guid? UserId { get; set; }
    //操作类型
    public string Action { get; set; } = string.Empty;
    //资源类型
    public string? Resource { get; set; }
    //资源Id
    public Guid? ResourceId { get; set; }
    //Ip地址
    public string? IpAddress { get; set; }
    //用户代理
    public string? UserAgent { get; set; }

    // Navigation properties
    public virtual User? User { get; set; }
}
